__author__ = '520'
# -*- coding: utf-8 -*-
from selenium import webdriver
from FlitHotellist import hotellist
from selenium.webdriver.support.wait import WebDriverWait
from Newwebdriver import Active
alw=webdriver.Chrome()
alw.get("http://fh.dujia.qunar.com/user/freeCombine/fhHotelList.jsp?flightIds=1084381783%2C3080368697&cabins=V%2CT&"
        "hotelId=3744307227&roomId=54171&depCity=%E5%8C%97%E4%BA%AC&city=%E6%98%86%E6%98%8E&arrCity=%E6%98%86%E6%98%8E&"
        "fromDate=2014-12-12&toDate=2014-12-14&checkinDate=2014-12-12&checkoutDate=2014-12-14&adult=1&child=0&room=1&"
        "cabinTypes=%E7%BB%8F%E6%B5%8E%E8%88%B1%2C%E7%BB%8F%E6%B5%8E%E8%88%B1&totalPrice=MTg4NA%3D%3D&flightType=&"
        "combineType=2&toFlightCompany=&backFlightCompany=&toDepTime=&"
        "backDepTime=&flightPrice=MTYwMA%3D%3D&hotelPrice=Mjg0&toFlightIsStop=&backFlightIsStop=&tm=fh_flight_search&hp=Mjg0&fp=MTYwMA%3D%3D")
hotel=hotellist(alw)
if hotel.hotelloading()==False:
    if hotel.hotellistexit()==False:
        hotel.hotelselect()

